package com.itheima.controller;

import com.itheima.domain.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiangjun.deng
 * email 17670934918dxj@sina.com
 * @date 2021/8/24 21:04
 * @desc
 */
@RestController
public class TestController {
    @PostMapping("/user")
    public User test(@RequestBody User user) {
        System.out.println(user);
        return user;
    }
}
